package com.chb.entity;

/**
 * @description:
 * @author: CHB
 * @create: 2021-12-07 16:47
 **/
public class Fruits implements Comparable<Fruits> {

    private int weight;

    public Fruits(){}
    public Fruits(int weight){this.weight = weight;}

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }

    public void print(){

    }

    @Override
    public int compareTo(Fruits o) {
        return this.weight - o.getWeight();
    }
}
